/* 全局样式 */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

/* 头部样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
  background-color: #f5f5f5;
}

.header {
  background: #1a2634;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: #00b3a4;
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  color: white;
}

.nav-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: white;
}
/* 主体样式 */
.hero {
  background: linear-gradient(
    to bottom,
    #00b4b3,
    #f5f5f5
  ); /* 背景从 #00b4b3 渐变到 #fff */
  color: #fff;
  padding: 100px 20px;
  text-align: center;
  background-size: cover;
  background-position: center;
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 20px;
}

.search-box {
  background-color: #fff;
  border-radius: 5px;
  display: inline-flex;
  padding: 10px;
}

.search-box input {
  border: none;
  font-size: 16px;
  padding: 5px 10px;
  flex-grow: 1;
}

.search-box button {
  background-color: #00c4b4;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  padding: 5px 20px;
}

.features {
  display: flex;
  justify-content: space-around;
  /* margin-top: 40px; */
  gap: 20px;
  margin: 10px 20px;
}

.job-listing {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
}

.job-info {
  flex-grow: 1;
}

.job-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
}

.salary {
  color: #f44336;
  font-weight: bold;
  margin-bottom: 8px;
}

.education,
.company {
  color: #888;
  margin-bottom: 4px;
}

.location-info {
  color: #888;
  font-size: 14px;
}
.sjob-list {
  width: 40%;
  background-color: #fff;
  margin-right: 40px;
}
.job-box p {
  margin: 6px 8px;
}
/* 底部样式 */
footer {
  background-color: #00c4b4;
  color: #fff;
  padding: 20px;
  text-align: center;
}
.job-listing {
  width: 250px;
}
/* ------------- */
.job-box {
  display: flex;
  /* border: 1px solid #ccc; */
  padding: 10px;
  width: 100%;
  position: relative; /* 必须设置 position: relative 以定位弹窗 */
  cursor: pointer;
}

.popup {
  position: absolute;
  /* top: 100%;  */
  left: 100%;
  background-color: #f0f0f0;
  color: #000;
  padding: 10px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 100;
  width: 400px;
  height: 300px;
}

.job-box:hover .popup {
  opacity: 1;
  visibility: visible;
}
